namespace Akso.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Update_Bill_Entity20161223 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Finance_Bills", "IncomeExpendType", c => c.String(unicode: false));
            AddColumn("dbo.Finance_Bills", "IncomeExpendTypeId", c => c.Guid(nullable: false));
            AlterColumn("dbo.Finance_Bills", "BillTypeId", c => c.Int(nullable: false));
            DropColumn("dbo.Finance_Bills", "BillType");
        }
        
        public override void Down()
        {
            AddColumn("dbo.Finance_Bills", "BillType", c => c.String(maxLength: 50, storeType: "nvarchar"));
            AlterColumn("dbo.Finance_Bills", "BillTypeId", c => c.Guid(nullable: false));
            DropColumn("dbo.Finance_Bills", "IncomeExpendTypeId");
            DropColumn("dbo.Finance_Bills", "IncomeExpendType");
        }
    }
}
